package com.jiawei.链表;

import com.jiawei.链表.单链表.LinkedListSingle;

/**
 * @author : willian fu
 * @version : 1.0
 */
public class Test {

    public static void main(String[] args) {
        singleLinkedList();
    }

    public static void singleLinkedList(){
        LinkedList<String> single = new LinkedListSingle<>();
        single.add("张三");
        single.add("李四");
        single.add("王五");
        single.print();
        single.add(0, "赵六");
        single.print();
        single.remove(2);
        single.print();
        single.forEach(System.out::println);
    }
}
